<template>
    <div id="home">
    <div class="index_head">
        <van-row type="flex" justify="space-between">
          <van-col span="12">第20181118期</van-col>
          <van-col span="12" class="haoma t_r">号码 : <span>98</span>&nbsp;<span>65</span>&nbsp;<span>43</span></van-col>
        </van-row>
        <van-row class="jiangjin">
          <van-col span="24" class="djs">开奖倒计时</van-col>
          <van-col span="24">20:34:37</van-col>
        </van-row>
        <van-row type="flex" justify="space-between">
          <van-col span="12">本期奖金池 0.037 <span>eth</span></van-col>
          <van-col span="12" class="t_r">查看投注>></van-col>
        </van-row>
    </div>

    <div class="index_touzhu m_5">
        <van-row class="tips">
          倒计时结束时:  刘德华将获得全部奖金
        </van-row>
        <van-row>
          <van-col span="24" class="wytz">我要投注</van-col>
        </van-row>
        <van-row class="mt_3">
          <van-col span="16">
              <van-stepper
              v-model="value"
              integer
              :min="1"
              :max="100"
              :step="1"
              />
          </van-col>
          <van-col span="8" class="danwei">
            @0.001 个eth
          </van-col>
        </van-row>
        <van-row class="touzhu_btn">
          <van-col span="24">
              <van-button @click="buy_btn" class="primary w_100" plain>立即投注</van-button>
          </van-col>
        </van-row>
        <van-row class="guizhe">
          <van-col offset='8' span="8" class='t_c'>
              <router-link to="/guizhe">游戏规则</router-link>
          </van-col>
        </van-row>
    </div>

    <van-tabbar v-model="active">
      <van-tabbar-item icon="home" url='#home'>首页</van-tabbar-item>
      <van-tabbar-item icon="wap-nav" url='#wangqi' dot>往期</van-tabbar-item>
      <van-tabbar-item icon="qr" url="#tuiguang">分享</van-tabbar-item>
      <van-tabbar-item icon="contact" url="#my">我的</van-tabbar-item>
    </van-tabbar>
    </div>
</template>

<script>
import { Swipe, SwipeItem } from "vant";
export default {
  data() {
    return {
      active: 0
    };
  },
  mounted() {
  },
  methods: {
    //确认购买
    buy_btn: function() {
      console.log(this.userinfo)
    },
    async getArticle() {
      let data = {
        url: "/com/article/detail",
        id: 4
      };
      let res = await this.request("post", data);
      this.Article = res.data.info;
    },
  }
};
</script>

<style>
.index_head{
  background:#00a0ff;
  padding:20px;
  font-size:14px;
  color:#fff;
}
.jiangjin{
  font-weight:400;
  font-size:1rem;
  text-align:center;
  margin:1rem 0;
}
.djs{
font-weight:normal;
font-size:0.3rem;
margin-bottom:0.5rem;
}
.wytz{
  padding:0.2rem 0;
  border-bottom:1px solid #f5f5f5;
}
.tips{
font-size:0.3rem;
margin:0.3rem 0;
color:#999;
padding:0.1rem;
}

#home .van-stepper__input{width:56%;}
.index_touzhu .van-stepper__minus,
.index_touzhu .van-stepper__plus{
  width:20%;
}
.haoma span{text-decoration:underline}
.danwei{line-height:30px;}
.touzhu_btn{margin-top:1rem;padding:1rem;}
</style>
